using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
namespace ChuanPlus.Reports
{
    public partial class XtraReport1 : DevExpress.XtraReports.UI.XtraReport
    {

        public string Param
        {
            get { return paramInvID.ToString(); }
            set { paramInvID.Value = value; }
        }
        public XtraReport1()
        {
            InitializeComponent();            
        }

        private void XtraReport1_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
        {
          CriteriaOperator criteria = new BinaryOperator(new OperandProperty("InvoiceNo.InvoiceNo"), new OperandValue(paramInvID.Value), BinaryOperatorType.Equal);
            xpCollection1.Criteria = criteria;
        }

        private void XtraReport1_ParametersRequestValueChanged(object sender, DevExpress.XtraReports.Parameters.ParametersRequestValueChangedEventArgs e)
        {
            
        }

        private void XtraReport1_ParametersRequestBeforeShow(object sender, DevExpress.XtraReports.Parameters.ParametersRequestEventArgs e)
        {
            paramInvID.Value = "";
        }

    }
}
